home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / Treiber / Misc / FastATA40000 / FastATA-Install < prev    next >
Text File  |  2000-01-29  |  8KB  |  399 lines

  1. (set #kkversion (getversion))
  2. (set #kkversion (/ #kkversion 65536) )
  3. (set #ilnapedow 3)
  4. (set alinstal 1)
  5. (set #proc (database "cpu"))
  6. (if (< #kkversion 39)
  7.    (abort "\n\nKickstart 3.0 or higher is required!")
  8. )
  9.  
  10. (message "\n\n\n\nWelcome to FastATA4000! ")
  11.  
  12. (set reinstalacja
  13.  (askchoice
  14.   (prompt "")
  15.    (help "\nSelect Installation only when you install this software"
  16.      " for the first time on this HDD, otherwise select Reinstallation.")
  17.    (choices "Installation" "Reinstallation")
  18.    (default 0)
  19.  )
  20. )
  21. (if reinstalacja
  22.  (set wybor 0)
  23.  (set wybor 
  24.   (askbool
  25.    (prompt "\n\n\n\nMay I change your s:startup-sequence?")
  26.    (help "\nIf you agree to change your s:startup-sequence, the installer"
  27.       "will add lines:\n\n C:CheckLMB\n"
  28.       " IF WARN\n SYS:Prefs/FastATAPrefs\n ENDIF\n C:FastATA.driver QUIET")
  29.    (choices  "Yes"  "No")
  30.    (default 1)
  31.   )
  32.  )
  33. )
  34.  
  35. (copylib
  36.    (prompt "FastATA.driver will be copied to C: directory.")
  37.    (help )
  38.    (source "FastATA.driver")
  39.    (confirm)
  40.    (dest "C:")
  41. )
  42.  
  43. (copylib
  44.    (prompt "FastATAPrefs will be copied to SYS:Prefs directory.")
  45.    (help )
  46.    (source "FastATAPrefs")
  47.    (confirm)
  48.    (infos)
  49.    (dest "SYS:Prefs")
  50. )
  51.  
  52. (copyfiles
  53.    (prompt "ATAPIFormat will be copied to C: directory.")
  54.    (source "ATAPIFormat")
  55.    (confirm)
  56.    (help )
  57.    (dest "C:")
  58. )
  59.  
  60. (copylib
  61.    (prompt "DriveSpeed will be copied to C: directory.")
  62.    (help )
  63.    (source "DriveSpeed")
  64.    (confirm)
  65.    (dest "C:")
  66. )
  67.  
  68. (copylib
  69.    (prompt "ReadTest will be copied to C: directory.")
  70.    (help )
  71.    (source "ReadTest")
  72.    (confirm)
  73.    (dest "C:")
  74. )
  75.  
  76. (copyfiles
  77.    (prompt "CheckLMB will be copied to C: directory.")
  78.    (source "CheckLMB")
  79.    (help )
  80.    (dest "C:")
  81. )
  82.  
  83. (if wybor
  84.    (
  85.       (copyfiles
  86.         (source "S:startup-sequence")
  87.         (dest "RAM:")
  88.       )
  89.       (textfile
  90.         (dest "S:startup-sequence")
  91.         (append "C:CheckLMB\nIF WARN\n")
  92.         (append "SYS:Prefs/FastATAPrefs\nENDIF\nC:FastATA.driver QUIET\n")
  93.         (include "RAM:startup-sequence")
  94.       )
  95.       (delete "RAM:startup-sequence")
  96.    )
  97. )
  98.  
  99. (if (> #ilnapedow 0)
  100.  (
  101.   (set #zastap 1)
  102.   (set #ls120
  103.    (askchoice
  104.     (prompt "\n\n\My first LS-120 (ZIP, SyQuest) is connected as:")
  105.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  106.     (default 1)
  107.     (help )
  108.    )
  109.   )
  110.   (if (> #ls120 0)
  111.    (   
  112.     (set #ilnapedow (- #ilnapedow 1))
  113.     (set #ls120 (+ #ls120 4))
  114.    (set name (cat "DEVS:DosDrivers/PC" #ls120))
  115.     (if (exists name)
  116.      (set #zastap         
  117.       (askbool
  118.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  119.        (help )
  120.        (default 0)
  121.       )
  122.      )
  123.     )
  124.     (if (= #zastap 1)
  125.      (
  126.       (set namep (cat "PC" #ls120))
  127.       (set names (cat "mountlists/" namep))
  128.       (copyfiles
  129.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  130.        (help )
  131.        (source names)
  132.        (dest "DEVS:Dosdrivers/")
  133.        (infos)
  134.       )
  135.      )
  136.     ) 
  137.    )
  138.   )
  139.  )
  140. )
  141.  
  142. (if (AND (> #ilnapedow 0) (> #ls120 0))
  143.  (
  144.   (set #zastap 1)
  145.   (set #ls120
  146.    (askchoice
  147.     (prompt "\n\n\My second LS-120 (ZIP, SyQuest) is connected as:")
  148.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  149.     (default 2)
  150.     (help )
  151.    )
  152.   )
  153.   (if (> #ls120 0)
  154.    (   
  155.     (set #ilnapedow (- #ilnapedow 1))
  156.     (set #ls120 (+ #ls120 4))
  157.    (set name (cat "DEVS:DosDrivers/PC" #ls120))
  158.     (if (exists name)
  159.      (set #zastap         
  160.       (askbool
  161.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  162.        (help )
  163.        (default 0)
  164.       )
  165.      )
  166.     )
  167.     (if (= #zastap 1)
  168.      (
  169.       (set namep (cat "PC" #ls120))
  170.       (set names (cat "mountlists/" namep))
  171.       (copyfiles
  172.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  173.        (help )
  174.        (source names)
  175.        (dest "DEVS:Dosdrivers/")
  176.        (infos)
  177.       )
  178.      )
  179.     ) 
  180.    )
  181.   )
  182.  )
  183. )
  184.  
  185.  
  186. (if (AND (> #ilnapedow 0) (> #ls120 0))
  187.  (
  188.   (set #zastap 1)
  189.   (set #ls120
  190.    (askchoice
  191.     (prompt "\n\n\My third LS-120 (ZIP, SyQuest) is connected as:")
  192.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  193.     (default 3)
  194.     (help )
  195.    )
  196.   )
  197.   (if (> #ls120 0)
  198.    (   
  199.     (set #ilnapedow (- #ilnapedow 1))
  200.     (set #ls120 (+ #ls120 4))
  201.    (set name (cat "DEVS:DosDrivers/PC" #ls120))
  202.     (if (exists name)
  203.      (set #zastap         
  204.       (askbool
  205.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  206.        (help )
  207.        (default 0)
  208.       )
  209.      )
  210.     )
  211.     (if (= #zastap 1)
  212.      (
  213.       (set namep (cat "PC" #ls120))
  214.       (set names (cat "mountlists/" namep))
  215.       (copyfiles
  216.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  217.        (help )
  218.        (source names)
  219.        (dest "DEVS:Dosdrivers/")
  220.        (infos)
  221.       )
  222.      )
  223.     ) 
  224.    )
  225.   )
  226.  )
  227. )
  228.  
  229. (message "\n\n\n\nFastATA4000 succesfully installed.\n")
  230.  
  231. (message "\n\n\n\nWelcome to AllegroCDFS! ")
  232.  
  233. (if (OR (= #proc "68000") (= #proc "68010"))
  234.     (abort "\n\nProcessor 68020 or higher is required!")
  235.  
  236. (copylib
  237.    (prompt "AllegroCDFS will be copied to L: directory.")
  238.    (help )
  239.    (source "AllegroCDFS")
  240.    (confirm)
  241.    (dest "L:")
  242. )
  243.  
  244. (copyfiles
  245.    (prompt "def_ISOCDDA.info will be copied to ENVARC: directory.")
  246.    (help )
  247.    (confirm)
  248.    (source "icons/def_ISOCDDA.info")
  249.    (dest "ENVARC:")
  250. )
  251.  
  252. (copyfiles
  253.    (prompt "def_CDDAdisk.info will be copied to ENVARC: directory.")
  254.    (help )
  255.    (confirm)
  256.    (source "icons/def_CDDAdisk.info")
  257.    (dest "ENVARC:")
  258. )
  259.  
  260. (set wybor 0)
  261. (set wybor 
  262.   (askbool
  263.    (prompt "\n\n\n\nMay I delete all CDx mountlists in DEVS:Dosdrivers/?\nRecommended: YES.")
  264.    (help )
  265.    (choices  "Yes"  "No")
  266.    (default 1)
  267.   )
  268. )
  269. (if (= wybor 1)      
  270.  (delete "DEVS:dosdrivers/CD#?")
  271. )      
  272.  
  273. (if (> #ilnapedow 0)
  274.  (
  275.   (set #zastap 1)
  276.   (set #cdrom
  277.    (askchoice
  278.     (prompt "\n\n\My first CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  279.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  280.     (default 1)
  281.     (help )
  282.    )
  283.   )
  284.   (if (> #cdrom 0)
  285.    (   
  286.     (set #ilnapedow (- #ilnapedow 1))
  287.    (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  288.     (if (exists name)
  289.      (set #zastap 
  290.       (askbool
  291.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  292.        (help )
  293.        (default 0)
  294.       )
  295.      )
  296.     )
  297.     (if (= #zastap 1)
  298.      (
  299.       (set namep (cat "CD" #cdrom))
  300.       (set names (cat "mountlists/" namep))
  301.       (copyfiles
  302.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  303.        (help )
  304.        (source names)
  305.        (dest "DEVS:Dosdrivers/")
  306.        (infos)
  307.       )
  308.      ) 
  309.     ) 
  310.    )  
  311.   )   
  312.  )    
  313. )
  314. (if (AND (> #ilnapedow 0) (> #cdrom 0))
  315.  (
  316.   (set #zastap 1)
  317.   (set #cdrom
  318.    (askchoice
  319.     (prompt "\n\n\My second CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  320.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  321.     (default 2)
  322.     (help )
  323.    )
  324.   )
  325.   (if (> #cdrom 0)
  326.    (   
  327.     (set #ilnapedow (- #ilnapedow 1))
  328.    (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  329.     (if (exists name)
  330.      (set #zastap 
  331.       (askbool
  332.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  333.        (help )
  334.        (default 0)
  335.       )
  336.      )
  337.     )
  338.     (if (= #zastap 1)
  339.      (
  340.       (set namep (cat "CD" #cdrom))
  341.       (set names (cat "mountlists/" namep))
  342.       (copyfiles
  343.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  344.        (help )
  345.        (source names)
  346.        (dest "DEVS:Dosdrivers/")
  347.        (infos)
  348.       )
  349.      ) 
  350.     ) 
  351.    )  
  352.   )   
  353.  )    
  354. )
  355. (if (AND (> #ilnapedow 0) (> #cdrom 0))
  356.  (
  357.   (set #zastap 1)
  358.   (set #cdrom
  359.    (askchoice
  360.     (prompt "\n\n\My third CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  361.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  362.     (default 3)
  363.     (help )
  364.    )
  365.   )
  366.   (if (> #cdrom 0)
  367.    (   
  368.     (set #ilnapedow (- #ilnapedow 1))
  369.    (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  370.     (if (exists name)
  371.      (set #zastap 
  372.       (askbool
  373.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  374.        (help )
  375.        (default 0)
  376.       )
  377.      )
  378.     )
  379.     (if (= #zastap 1)
  380.      (
  381.       (set namep (cat "CD" #cdrom))
  382.       (set names (cat "mountlists/" namep))
  383.       (copyfiles
  384.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  385.        (help )
  386.        (source names)
  387.        (dest "DEVS:Dosdrivers/")
  388.        (infos)
  389.       )
  390.      ) 
  391.     ) 
  392.    )  
  393.   )   
  394.  )    
  395. )
  396. (exit "\n\n\n\nAllegroCDFS succesfully installed." (quiet))
  397.  
  398.